package com.cqw.commontest.lambda;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-05-31 14:46
 * @Description: 静态方法与成员方法的引用
 */
public class LambdaTest2 {


    public static void main(String[] args) {
        ReturnOneParam returnOneParam = LambdaTest2::num;

        LambdaTest2 lambdaTest2 = new LambdaTest2();
        ReturnOneParam returnOneParam1 = lambdaTest2::two;
    }


    //静态方法
    public static int num(int a) {
        return 1000;
    }


    //成员方法
    public int two(int a) {
        return 1000;
    }

}
